@REM  To build our SMS providers into image

if /I not "%MODEM_TYPE%" == "QC6020" goto MS_SMS_PROVIDERS
echo "Qc6020"
@REM  Disable the default building of SMS providers
set IMGNOSMSPROVIDERS=1

@REM  Delete SMS_providers package provided by microsoft
if not EXIST "%_PROJECTROOT%\OAK\PACKAGES\%_TGTCPU%\%WINCEDEBUG%\SMS_Providers.cab.pkg.bak" copy "%_PROJECTROOT%\OAK\PACKAGES\%_TGTCPU%\%WINCEDEBUG%\SMS_Providers.cab.pkg" "%_PROJECTROOT%\OAK\PACKAGES\%_TGTCPU%\%WINCEDEBUG%\SMS_Providers.cab.pkg.bak"
if EXIST "%_PROJECTROOT%\OAK\PACKAGES\%_TGTCPU%\%WINCEDEBUG%\SMS_Providers.cab.pkg" del "%_PROJECTROOT%\OAK\PACKAGES\%_TGTCPU%\%WINCEDEBUG%\SMS_Providers.cab.pkg"
if not EXIST "%_PROJECTROOT%\OAK\PACKAGES\%_TGTCPU%\%WINCEDEBUG%\SMS_PROVIDERS_BAK" mkdir "%_PROJECTROOT%\OAK\PACKAGES\%_TGTCPU%\%WINCEDEBUG%\SMS_PROVIDERS_BAK"
if not EXIST "%_PROJECTROOT%\OAK\PACKAGES\%_TGTCPU%\%WINCEDEBUG%\SMS_PROVIDERS_BAK\SMS_Providers.dll" xcopy "%_PROJECTROOT%\OAK\PACKAGES\%_TGTCPU%\%WINCEDEBUG%\SMS_PROVIDERS" "%_PROJECTROOT%\OAK\PACKAGES\%_TGTCPU%\%WINCEDEBUG%\SMS_PROVIDERS_BAK"
if EXIST "%_PROJECTROOT%\OAK\PACKAGES\%_TGTCPU%\%WINCEDEBUG%\SMS_PROVIDERS" del /Q/F "%_PROJECTROOT%\OAK\PACKAGES\%_TGTCPU%\%WINCEDEBUG%\SMS_PROVIDERS"

goto FINISHED

:MS_SMS_PROVIDERS

@REM  Disable the default building of SMS providers
set IMGNOSMSPROVIDERS=

@REM  Delete SMS_providers package provided by microsoft
if not EXIST "%_PROJECTROOT%\OAK\PACKAGES\%_TGTCPU%\%WINCEDEBUG%\SMS_Providers.cab" copy "%_PROJECTROOT%\OAK\PACKAGES\%_TGTCPU%\%WINCEDEBUG%\SMS_Providers.cab.pkg.bak" "%_PROJECTROOT%\OAK\PACKAGES\%_TGTCPU%\%WINCEDEBUG%\SMS_Providers.cab.pkg"
if not EXIST "%_PROJECTROOT%\OAK\PACKAGES\%_TGTCPU%\%WINCEDEBUG%\SMS_PROVIDERS\SMS_Providers.dll" xcopy /S "%_PROJECTROOT%\OAK\PACKAGES\%_TGTCPU%\%WINCEDEBUG%\SMS_PROVIDERS_BAK" "%_PROJECTROOT%\OAK\PACKAGES\%_TGTCPU%\%WINCEDEBUG%\SMS_PROVIDERS"

:FINISHED
